from selenium.webdriver.common.by import By

from web_pratice.addmember_page import AddmemberPage
from web_pratice.base_page import BasePage

# 微信首页
class MainPage(BasePage):
    _base_url = "https://work.weixin.qq.com/wework_admin/frame#index"
    def goto_addmember(self):
        # 点击添加成员
        self.find(By.CSS_SELECTOR,".js_service_list>a:nth-child(1) span.index_service_cnt_item_title").click()
        # 跳转到添加成员页面
        return AddmemberPage(self.driver)